package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BizCustomTypeMapper;
import com.ruoyi.business.domain.BizCustomType;
import com.ruoyi.business.service.IBizCustomTypeService;

/**
 * 客户类型Service业务层处理
 *
 * @author ruoyi
 * @date 2024-09-12
 */
@Service
public class BizCustomTypeServiceImpl implements IBizCustomTypeService
{
    @Autowired
    private BizCustomTypeMapper bizCustomTypeMapper;

    /**
     * 查询客户类型
     *
     * @param id 客户类型主键
     * @return 客户类型
     */
    @Override
    public BizCustomType selectBizCustomTypeById(Long id)
    {
        return bizCustomTypeMapper.selectBizCustomTypeById(id);
    }

    /**
     * 查询客户类型列表
     *
     * @param bizCustomType 客户类型
     * @return 客户类型
     */
    @Override
    public List<BizCustomType> selectBizCustomTypeList(BizCustomType bizCustomType)
    {
        return bizCustomTypeMapper.selectBizCustomTypeList(bizCustomType);
    }

    /**
     * 新增客户类型
     *
     * @param bizCustomType 客户类型
     * @return 结果
     */
    @Override
    public int insertBizCustomType(BizCustomType bizCustomType)
    {
        return bizCustomTypeMapper.insertBizCustomType(bizCustomType);
    }

    /**
     * 修改客户类型
     *
     * @param bizCustomType 客户类型
     * @return 结果
     */
    @Override
    public int updateBizCustomType(BizCustomType bizCustomType)
    {
        return bizCustomTypeMapper.updateBizCustomType(bizCustomType);
    }

    /**
     * 批量删除客户类型
     *
     * @param ids 需要删除的客户类型主键
     * @return 结果
     */
    @Override
    public int deleteBizCustomTypeByIds(Long[] ids)
    {
        return bizCustomTypeMapper.deleteBizCustomTypeByIds(ids);
    }

    /**
     * 删除客户类型信息
     *
     * @param id 客户类型主键
     * @return 结果
     */
    @Override
    public int deleteBizCustomTypeById(Long id)
    {
        return bizCustomTypeMapper.deleteBizCustomTypeById(id);
    }
}
